﻿using ServiceCore;
using System;
using System.Collections.Generic;
using System.Text;

namespace Entity
{
    public class VersionList
    {
        /// <summary>
        /// 类型  主柜板MV/温控版T/1号柜Fir/2号柜Fir/3号柜Thi
        /// </summary>
        public string VersionType { get; set; }
        /// <summary>
        /// 更新时间
        /// </summary>
        public string UpdateTime { get; set; }
        /// <summary>
        ///  电路板时间
        /// </summary>
        public string BoardTime { get; set; }
    }

    public class temp_version_model
    {
        public string mchid { get; set; }

        public DateTime? Temp_version_time { get; set; }

        public DateTime? BoardTime { get; set; }

        public string remark { get; set; }

        public int state { get; set; }

        public string uid { get; set; }

        public string uname { get; set; }
        public DateTime? end_time { get; set; }

        public string designated_uid { get; set; }

        public string designated_uname { get; set; }

        public DateTime? designated_time { get; set; }
        /// <summary>
        /// 自定义备注
        /// </summary>
        public string diy_remark { get; set; }
        /// <summary>
        /// 最后更新时间
        /// </summary>
        public DateTime? last_update_time { get; set; }
    }
    /// <summary>
    /// 
    /// </summary>
    public class search_version_model : temp_version_model
    {

        public int sn_length { get; set; }

        public string SN { get; set; }
        public string mchname { get; set; }

        public string BaseUserId { get; set; }

        public string key { get; set; }

        public string UserName { get; set; }

        public string Id { get; set; }

        public string Name { get; set; }

        public string Tel { get; set; }

        public string ConnUpdateOn { get; set; }

        public string state_remark
        {
            get
            {
                return state == 1 ? "已处理" : state == 5 ? "无需处理" : state == 3 ? "处理中" : "未处理";
            }
        }
    }
    public class search_temp_info : Base_List_Params
    {
        /// <summary>
        /// 状态
        /// </summary>
        public int? state { get; set; }
        /// <summary>
        /// 0 温控 1常温机  2 unknow:未上报机器
        /// </summary>
        public int? mch_type { get; set; }

        public string start_time { get; set; }

        public string end_time { get; set; }

        public string designated_uid { get; set; }

    }
    public class designated_person_params
    {
        public string[] mchids { get; set; }

        public string uid { get; set; }
    }
    public class change_state_params
    {
        public string mchid { get; set; }

        public string diy_remark { get; set; }

        public int state { get; set; }
    }
}
